package com.power.test.service.impl;

import com.power.test.dubbo.DubboInterface;
import com.power.test.model.Student;
import org.apache.dubbo.config.annotation.DubboService;

import java.util.ArrayList;
import java.util.List;

/**
 * dubbo接口文档生成
 * @author yu 2021/5/15.
 */
@DubboService
public class DubboInterfaceImpl implements DubboInterface {


    /**
     * dubbo测试接口1
     * @param orderList
     * @return
     */
    @Override
    public List<Student> testConstantsRequestParams(Student[] orderList) {
        Student student = new Student();
        student.setName("测试");
        List<Student> students = new ArrayList<>();
        students.add(student);
        return students;
    }

    /**
     * dubbo测试接口2
     * @param orderList
     * @return
     */
    @Override
    public List<List<Student>> testConstantsRequestParams2(List<Student> orderList) {
        Student student = new Student();
        student.setName("测试");
        List<Student> students = new ArrayList<>();
        students.add(student);
        List<List<Student>> supperList = new ArrayList<>();
        supperList.add(students);
        return supperList;
    }
}
